package com.hisoft.util;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;

/**
 * @program: jwt_token_demo01
 * @description:
 * @author: wlg
 * @create: 2021-08-13 14:29:00
 **/
public class JWTUtils {
    public static String getToken(String userCode, String userPassword) {
        return JWT.create()
                .withAudience(userCode)
                .sign(Algorithm.HMAC256(userPassword));
    }
}

